ActionController::Routing::Routes.draw do |map|
	# RESTful routes
  map.resources :features
  map.resources :jobs
  map.resources :datasheets
  map.resources :graphics
  map.resources :categorizations
  map.resources :vails
  map.resources :categories
	map.resources :users
  map.resources :sessions

	# Named routes
  map.home '', :controller => 'home'
	map.signup '/signup', :controller => 'users', :action => 'new'
  map.login  '/login', :controller => 'sessions', :action => 'new'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
	
	# Default routes
  map.connect ':controller/service.wsdl', :action => 'wsdl'
  map.connect ':controller/:action/:id.:format'
	map.connect ':controller/:action/:id'
	
	# Custom routes
	map.menu_name ':menu_name', :controller => 'categories', :action => 'show'
	map.vail_in_category ':category_menu_name/:id', :controller => 'vails', :action => 'show'
end
